public class SystemTest
{
    public static void main(String[] args)
    {
	/*float xval = 7;
	double rand = 5.47683;
	Item root = new Item('+');
	Item left = new Item('/');
	Item right = new Item('*');
	BTree tree1 = new BTree(new Node(root));
	BTree leftTree = new BTree(new Node(left));
	BTree rightTree = new BTree(new Node(right));
	leftTree.insertLeft(new Item(xval));
	leftTree.insertRight(new Item(rand));
	rightTree.insertLeft(new Item(rand));
	rightTree.insertRight(new Item(xval));
	tree1.insertLeftTree(leftTree);
	tree1.insertRightTree(rightTree);
	tree1.removeRightTree(rightTree);


	System.out.println("Size is: "+tree1.getSize());
	System.out.println("Height is: "+tree1.getHeight());
	tree1.display(tree1.getRoot());
	System.out.println();*/

	BTree t1 = new BTree();
	//t1.insertLeft(new Item(7.0));
	//t1.insertRight(new Item(0.0));
	TrainingData td = new TrainingData(21);
	t1.initFull(1);
	//t1.display(t1.getRoot());
	//t1.destroyBTree();
	//t1.display(t1.getRoot());
	System.out.println();
	double d = t1.getFitness(td);
	if(t1.getRoot() != null)
	    {
		System.out.println("fitness value: "+d);
	    }
	//System.out.println("height is: "+t1.getSize());
	//t1.getRoot().getKey().printNode();
	//t1.getRoot().getKey().printNode();
	//t1.getRoot().getLeft().getKey().printNode();
	//System.out.println();
	//t1.getRoot().getRight().getKey().printNode();
	

	/*Population p1 = new Population(20);
	p1.rampedHalfAndHalf();
	BTree[] inds = p1.getPopulation();
	for(int i=0; i<20; i++)
	{
	    inds[i].display(inds[i].getRoot());
	    System.out.println("individual: "+i);
	    }
	    System.out.println();*/
    }
}
